package com.matt.domain;

import com.matt.foundation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.annotation.Autowired;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * *******************************
 * description:附件
 * Created by Ron.
 * form com.matt
 * on 2018/6/13
 * *******************************
 */
@Entity
@Table(name = "attachment")
@Data
@EqualsAndHashCode(callSuper = true)
public class Attachment extends Domain{

    @Column(columnDefinition = "varchar(50) COMMENT '附件名称'")
    private String name;

    @Column(columnDefinition = "longtext COMMENT '附件地址'")
    private String attachmentUrl;

    @Column(columnDefinition = "varchar(50) COMMENT '附件类型'")
    private String type;

    @Column(columnDefinition = "varchar(32) COMMENT '员工id'")
    private String staffId;

    //冗余字段
    @Column(columnDefinition = "varchar(50) COMMENT '员工姓名'")
    private String staffName;

    @Column(columnDefinition = "varchar(32) COMMENT '所属线索id'")
    private String leadsId;

    @Column(columnDefinition = "varchar(32) COMMENT '合同id'")
    private String contractId;

    @Column(columnDefinition = "varchar(32) COMMENT '客户id'")
    private String clienteleId;


}
